﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BarGallery.ascx.cs" Inherits="MpSoft.Web.Controls.Gallery.BarGallery" %>
<p class="bar-gallery">
    <asp:Repeater ID="rpGalleries" runat="server">
        <ItemTemplate>
            <a href="<%# string.Format(Eval("FormatUrl").ToString(),Eval("GalleryID")) %>">
                <img src="<%# Eval("Images").ToString().IndexOf("@") > 0 ? Eval("Images").ToString().Substring(0,Eval("Images").ToString().IndexOf("@")) : "" %>" />
                <span><%# Eval("Title") %></span>
            </a>
        </ItemTemplate>
    </asp:Repeater>
</p>
